package jp.co.sn.mml.pojo.tmgfk;

import jp.co.sn.mml.pojo.tmkk.Tmkk;

public class TmgfkId implements java.io.Serializable { 

	//菌数結果コード
	private Tmkk kinSKkCd;
	//行番号
	private Long seq;

	/** default constructor */
	public TmgfkId(){

	}

	/** full constructor */
	public TmgfkId(Tmkk kinSKkCd,Long seq){
		this.kinSKkCd = kinSKkCd;
		this.seq = seq;
	}

	//Property accessors
	public Tmkk getKinSKkCd(){
		return this.kinSKkCd;
	}

	public void setKinSKkCd(Tmkk kinSKkCd){
		this.kinSKkCd=kinSKkCd;
	}

	public Long getSeq(){
		return this.seq;
	}

	public void setSeq(Long seq){
		this.seq=seq;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TmgfkId))
			return false;

		TmgfkId castOther = (TmgfkId) other;

		return ((this.getKinSKkCd() ==  castOther.getKinSKkCd())
				||(this.getKinSKkCd()!=null && castOther.getKinSKkCd() !=null 
					&& castOther.getKinSKkCd() !=null 
					&& this.getKinSKkCd().equals(castOther.getKinSKkCd())))
			&& ((this.getSeq() ==  castOther.getSeq())
				||(this.getSeq()!=null && castOther.getSeq() !=null 
					&& castOther.getSeq() !=null 
					&& this.getSeq().equals(castOther.getSeq())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getKinSKkCd() == null ? 0 : this.getKinSKkCd().hashCode());
		result = 37 * result
				+ (getSeq() == null ? 0 : this.getSeq().hashCode());
		return result;
	}

}